<template>
  <div class="help-center">
    <h2 class="help-title">帮助中心</h2>
    <div class="faq-list">
      <div class="faq-item" v-for="(item, idx) in faqs" :key="idx">
        <div class="faq-q">Q: {{ item.q }}</div>
        <div class="faq-a">A: {{ item.a }}</div>
      </div>
    </div>
    <div class="help-contact">
      <h3>联系客服</h3>
      <p>
        如有疑问，请联系邮箱：<a href="mailto:support@example.com"
          >support@example.com</a
        >
      </p>
      <p>或拨打客服电话：400-123-4567</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      faqs: [
        {
          q: "如何修改个人信息？",
          a: "进入个人中心，点击‘编辑资料’即可修改个人信息。",
        },
        {
          q: "怎么购物？",
          a: "在登录页面点击‘商城’，即可进行购物。",
        },
        {
          q: "如何查看我的订单？",
          a: "登录后进入‘我的订单’页面即可查看所有订单信息。",
        },
        { q: "如何联系客服？", a: "您可以通过页面下方的联系方式联系客服。" },
      ],
    };
  },
};
</script>

<style scoped>
.help-center {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 32px 20px 24px 20px;
  font-family: "Segoe UI", Arial, sans-serif;
}
.help-title {
  text-align: center;
  color: #2563eb;
  font-size: 2em;
  margin-bottom: 28px;
  letter-spacing: 2px;
}
.faq-list {
  margin-bottom: 32px;
}
.faq-item {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.faq-q {
  font-weight: bold;
  color: #ff5000;
  margin-bottom: 4px;
}
.faq-a {
  color: #333;
  font-size: 1em;
  padding-left: 1em;
}
.help-contact {
  background: #f8fafc;
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  color: #555;
}
.help-contact h3 {
  margin: 0 0 10px 0;
  color: #2563eb;
  font-size: 1.1em;
}
.help-contact a {
  color: #ff5000;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .help-center {
    max-width: 98vw;
    padding: 18px 2vw;
  }
}
</style>